package io.renren.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import lombok.Data;

/**
 * @author  lj
 * @date  2021/3/30 20:24
 * @email milolj@foxmail.com
 */

/**
 * 商品信息表
 */
@ApiModel(value = "io-renren-modules-shop-entity-GoodsMsg")
@Data
@TableName(value = "goods_msg")
public class GoodsMsg implements Serializable {
    /**
     * 货物id
     */
    @TableId(value = "goods_id", type = IdType.AUTO)
    @ApiModelProperty(value = "货物id")
    private Integer goodsId;

    /**
     * 货物名
     */
    @TableField(value = "goods_name")
    @ApiModelProperty(value = "货物名")
    private String goodsName;

    /**
     * 类别（1.重磅新品 2热门推荐 3猜你喜欢 4必买商品）
     */
    @TableField(value = "goods_type")
    @ApiModelProperty(value = "类别（1.重磅新品 2热门推荐 3猜你喜欢 4必买商品）")
    private Integer goodsType;

    /**
     * 货物类别总称
     */
    @TableField(value = "goods_clazz")
    @ApiModelProperty(value = "货物类别总称")
    private String goodsClazz;

    /**
     * 货物数量
     */
    @TableField(value = "goods_num")
    @ApiModelProperty(value = "货物数量")
    private Integer goodsNum;

    /**
     * 货物单价
     */
    @TableField(value = "goods_price")
    @ApiModelProperty(value = "货物单价")
    private BigDecimal goodsPrice;

    /**
     * 货物描述
     */
    @TableField(value = "goods_content")
    @ApiModelProperty(value = "货物描述")
    private String goodsContent;

    /**
     * 货物采购地址
     */
    @TableField(value = "goods_pro_place")
    @ApiModelProperty(value = "货物采购地址")
    private String goodsProPlace;

    /**
     * 货物销售地址
     */
    @TableField(value = "goods_sale_place")
    @ApiModelProperty(value = "货物销售地址")
    private String goodsSalePlace;

    /**
     * 货物状态 状态0位存在，1为缺货，2为删除
     */
    @TableField(value = "goods_status")
    @ApiModelProperty(value = "货物状态 状态0位存在，1为缺货，2为删除")
    private Integer goodsStatus;

    @TableField(exist = false)
    private List<String> picPosition;

    @TableField(exist = false)
    private Integer num = 1;

    @TableField(exist = false)
    private List<String> hotList;

    @TableField(exist = false)
    private List<String> newList;

    @TableField(exist = false)
    private List<String> greatList;

    @TableField(exist = false)
    private List<String> recomadeList;

    @TableField(exist = false)
    private List<String> gussLikeList;

    @TableField(exist = false)
    private List<String> lunboList;
}
